home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-07-20 | 694 b | 36 lines | [TEXT/CWIE] |
- //Copyright (c) 1997 Aidan Cully
- //All rights reserved
-
- #include "CLOutline.h"
-
- TOutline::TOutline( TLayoutBranch *super, TLayoutLeaf *child ):
- TLayoutBranch( super ),
- mContent( child )
- {
- }
-
- void TOutline::DrawSelf( TDrawSlate *gr )
- {
- PenState curPen;
-
- ::GetPenState( &curPen );
- ::PenNormal();
- ::PenSize( 3, 3 );
- ::FrameRoundRect( &mContentRect, 14, 14 );
- ::SetPenState( &curPen );
- ((TOutline*)mContent)->DrawSelf( gr );
- }
-
- void TOutline::BuildChildren()
- {
- Rect chRect= mContentRect;
-
- ::InsetRect( &chRect, 4, 4 );
- mContent->SetParent( this );
- AddChild( mContent, chRect, 0 );
- }
-
- void TOutline::CalcMouseMove( Point pt, RgnHandle rgn )
- {
- TLayoutBranch::CalcMouseMove( pt, rgn );
- }